baumhaus.digital/Klasse Leben/WiSeAE56/On Tracking : Dancing Piano II./Roll, Pitch, Yaw/Why yaw drifts
At rest, the accelerometer feels gravity. That gives roll and pitch — absolute.
Turning about the vertical does not change where gravity points. Yaw has no such anchor.
Two remedies: add up the gyroscope's rotation speed (small errors accumulate: drift) or consult a magnetic compass (disturbed by metal and electronics).
So: calibrate before you dance, and expect turn to be the least stable of the three.